#define  _CRT_SECURE_NO_WARNINGS
#include  "Queue.h"

void test1()
{
	Queue pq;
	QueueInit(&pq);
	QueuePush(&pq, 1);
	QueuePush(&pq, 2);
	QueuePush(&pq, 3);
	QueuePush(&pq, 4);
	printf("size:%d\n", QueueSize(&pq));
	printf("front:%d\n", QueueFront(&pq));
	printf("back:%d\n", QueueBack(&pq));
	QueueNode* cur = pq.phead;
	while (cur)
	{
		printf("%d ", cur->data);
		cur = cur->next;
	}
	printf("\n");

	QueueDestroy(&pq);
	printf("size:%d\n", QueueSize(&pq));
}

int main()
{
	test1();

	return 0;
}